<?	


$prensa = $db->get_results("SELECT * FROM prensa WHERE 1=1 ORDER BY fecha DESC");



?>

	<div class="levels-active">
		<?	foreach ($niveles as $k => $v): ?>
			<a href="/site/<?=$k?>/" class="<?=$k?>"><?=$v?></a>
		<?	endforeach; ?>
	</div>

	<div class="institucional-content historial-list">

		<h1>Historial de Prensa</h1>

		<div class="submenu">
			<ul>
				<?	if ($prensa)
						foreach ($prensa as $v): 
				?>
				<li>
					<span class="date"><?=date("d.m.y", strtotime($v['fecha']))?></span>
					<h2><?=$v['titulo']?></h2>
					<p><?=$v['medio']?> - <a href="<?=$v['link']? (!preg_match('/^http:\/\//', $v['link'])? 'http://'.$v['link'] : $v['link']) : '/site/prensa/ver/'.$v['id_prensa'].'/'.urlencode($v['titulo']).'/' ?>" <?=$v['link']? 'target="_blank"' : ''?> >VER NOTA</a></p>
				</li>
				<?		endforeach; ?>
			</ul>
		</div>

	</div>
